<!DOCTYPE html>
<html lang="zh">
<head>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>一元夺宝</title>
    <link href="css/main.css" rel="stylesheet" type="text/css"/>
    <link href="css/swiper.min.css" rel="stylesheet" type="text/css"/>
</head>
<body id="yydb">
    <div class="container" >
        <div class="hd-bk">
            <div class="panel">
                <div class="period">第17233255625期</div>
                <img src="images/yydb-01.png" />
                <div class="cont clearfix">
                    <p>奖品</p>
                    <p>新郎酒18年1瓶新郎酒18年1瓶新郎酒18年1瓶</p>
                </div>

            </div>
            <img class="lip" src="images/yydb-05.png" />
        </div>
        <div class="progress-bk">
            <div class="hd">总需人次：<i>30</i> | 剩余人次：<i>30</i></div>
            <div class="progress">
                <div class="line" style="width: 50%"></div>
            </div>
        </div>
        <a class="bk-01">
            <div class="opt clearfix">
                <span class="label">我参与了:</span>
                <span class="cont"><i>2</i>次</span>
            </div>
            <div class="opt clearfix">
                <span class="label">参与号码:</span>
                <span class="cont">1112 4323</span>
            </div>
        </a>
        <div class="bk-02">
            <div class="bd ">
                <div class="swiper-container swiper-list">
                    <div class="swiper-wrapper">
                        <a class="swiper-slide clearfix">
                            <img class="avatar" src="images/loading.png" >
                            <div class="cont">
                                <p>183****1852 <i>10分钟前</i></p>
                                <p>第17233255625期</p>
                                <p>中奖:18年新浪酒</p>
                            </div>
                        </a>
                        <a class="swiper-slide clearfix">
                            <img class="avatar" src="images/loading.png" >
                            <div class="cont">
                                <p>183****1852 <i>10分钟前</i></p>
                                <p>第17233255625期</p>
                                <p>中奖:18年新浪酒</p>
                            </div>
                        </a>
                        <a class="swiper-slide clearfix">
                            <img class="avatar" src="images/loading.png" >
                            <div class="cont">
                                <p>183****1852 <i>10分钟前</i></p>
                                <p>第17233255625期</p>
                                <p>中奖:18年新浪酒</p>
                            </div>
                        </a>

                    </div>
                </div>

            </div>
        </div>
        <div class="bk-03">
            <div class="hd">
                <h3>本期参与人</h3>
                <time><i>2017-04-01 14:14:07</i> 开始</time>
            </div>
            <ul class="bd">
                <li>
                    <img class="avatar" src="images/loading.png" >
                    <div class="cont">
                        <p>asd***asd</p>
                        <p>2017-04-01 14:14:07</p>
                    </div>
                </li>
                <li>
                    <img class="avatar" src="images/loading.png" >
                    <div class="cont">
                        <p>asd***asd</p>
                        <p>2017-04-01 14:14:07</p>
                    </div>
                </li>
                <li>
                    <img class="avatar" src="images/loading.png" >
                    <div class="cont">
                        <p>asd***asd</p>
                        <p>2017-04-01 14:14:07</p>
                    </div>
                </li>
                <li>
                    <img class="avatar" src="images/loading.png" >
                    <div class="cont">
                        <p>asd***asd</p>
                        <p>2017-04-01 14:14:07</p>
                    </div>
                </li>
                <li>
                    <img class="avatar" src="images/loading.png" >
                    <div class="cont">
                        <p>asd***asd</p>
                        <p>2017-04-01 14:14:07</p>
                    </div>
                </li>
            </ul>
        </div>

        <div class="bk-04">
            <div class="btn btn-join">
                立即参加
            </div>
        </div>
    </div>
    <script src="js/rem.js"></script>
    <script src="js/jquery.js"></script>
    <script src="libs/layer_mobile/layer.js"></script>
    <script src="js/swiper.jquery.min.js"></script>
    <script>
        var swiperList = new Swiper('.swiper-list', {
            paginationClickable: true,
            direction: 'vertical',
            autoplay:5000,
            autoHeight:true,
            loop:true,
            autoplayDisableOnInteraction : false
        });
        var joinHtml=function () {
            return '<div class="joinHtml"><ul class="num">' +
                '<li>1个</li>' +
                '<li>5个</li>' +
                '<li>10个</li>' +
                '</ul>' +
                '<div class="btn btn-pay">支付</div>' +
                '</div>'
        }

        $(".btn-join").on("click",function () {
            layer.open({
                type: 1
                ,title:['选择购买数量',"font-size: 20px;"]
                ,content: joinHtml()
                ,anim: 'up'
                ,style: 'position:fixed; bottom:0; left:0; width: 100%; height: 200px; padding:10px 0; border:none;',
                success:function (elem) {
                    $(elem).find(".num li").on("click",function () {
                        $(elem).find(".num li").removeClass("act")
                        $(this).addClass("act")
                    })


                }

            });
        })

    </script>

</body>
</html>